package com.potenzacd.project.pojo;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

//缓存区
public class Cache<T> {
    //程序启动时直接初始化
    public static List<Object> cacheList=new ArrayList<>();

    //程序启动时直接初始化
    public static Map<Object,Object> cacheMap=new HashMap<>();

    public static List<Object> getCacheList() {
        return cacheList;
    }

    public static void setCacheList(List<Object> cacheList) {
        Cache.cacheList = cacheList;
    }

    public static Map<Object, Object> getCacheMap() {
        return cacheMap;
    }

    public static void setCacheMap(Map<Object, Object> cacheMap) {
        Cache.cacheMap = cacheMap;
    }
}
